<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .box {
        display: inline-block;
        background-color: pink;
        padding: 18px;

        a {
          text-decoration: none;
          float: none;
          color: white;
        }
        .separator {
          padding: 0 15px;
          font-size: 20px;
        }
      }
    </style>
  </head>
  <body>
    <div class="box">
      <a href="#">首页</a><a class="separator">|</a> <a href="#">会员</a
      ><a class="separator">|</a> <a href="#">订单</a
      ><a class="separator">|</a> <a href="#">服务</a
      ><a class="separator">|</a> <a href="#">联系我</a
      ><a class="separator">|</a>
      <a href="#">登录</a>
    </div>
  </body>
</html>
